#ifndef NEC_FS_FILE_READER_HPP
#define NEC_FS_FILE_READER_HPP

#include <cstdio>
#include <string>

#include "nec_fs/const.hpp"

namespace nec_fs {

class FileReader {
public:
  FileReader(const char *filename);
  // read a string end of '\n'
  int ReadStr(std::string &line);
  ~FileReader();

private:

  int ReadBuff();

  FILE* f;
};


} // nec_fs

#endif